﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tools;

namespace Common.Exceptions
{
    public class BusinessLogicException : BaseException
    {
        public BusinessLogicException(BusinessLogicException bex)
            : base(bex.Code, bex.DefaultMessage, bex.MessageArgs)
        { }
        
        public BusinessLogicException(string code)
            : base(code)
        { }

        public BusinessLogicException(string code, params string[] messageArgs)
            : base(code, messageArgs)
        { }

        public BusinessLogicException(string code, string defaultMessage)
            : base(code, defaultMessage)
        { }

        public BusinessLogicException(string code, string defaultMessage, params string[] messageArgs)
            : base(code, defaultMessage, messageArgs)
        { }


        public virtual void Prepare()
        { }
    }
}
